const deftype = '';
const rb = 'rb';
const lt = 'lt';
const lb = 'lb';

const dufTitle = "ServeRespon";
const dufContent = "默认标题";
const dufType = deftype;
const logout_success_message = "退出成功"
const logout_error_message = "退出失败"
const login_success_message = "登录成功"
const login_erro_message = "登录失败"

const zhjyLogin_success_message = '绑定成功';
const zhjyLogin_error_message = '绑定失败';

const StatusCodeEnum = {
    // 成功状态码及信息
    response_success: (content = dufContent) => 
        ({ title:dufTitle, content:content, type:1 }),

    response_erro: (content = dufContent) => 
        ({ title:dufTitle, content:content, type:2 }),


    insert_success: (content = dufContent) => 
        ({ title:dufTitle, content:content, type:1 }),

    insert_erro: (content = dufContent) => 
        ({ title:dufTitle, content:content, type:2 }),

    login_success: () => 
        ({ title:dufTitle, content:login_success_message, type:1 }),

    login_error: () => 
        ({ title:dufTitle, content:login_erro_message, type:2 }),
    
    logout_success: () => 
        ({ title:dufTitle, content:logout_success_message, type:1 }),

    logout_erro: () => 
        ({ title:dufTitle, content:logout_error_message, type:2 }),

    zhjyLogin_success: () => 
        ({ title:dufTitle, content:zhjyLogin_success_message, type:1 }),

    zhjyLogin_error: () => 
        ({ title:dufTitle, content:zhjyLogin_error_message, type:2 }),

    myPop: (content, type) => 
        ({ title:dufTitle, content, type }),
};

// 导出枚举类
export {StatusCodeEnum};